package Day06;

public class Demo13 {
    public static void main(String[] args) {
        for (int a =1;a<=100;a++){
            System.out.println(a);
        }
        int i=1;
        int j=0;
        do {
            j+=i;
            i++;
        }while (i<=100);
        System.out.println("1-100的和为"+j);
    }
}
